SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 3610: "ERROR: Cannot open X display" when running PROC EXPORT or PROC IMPORT in batch mode

DetailsAboutRate It

In releases prior to SAS® 9.3, the following error occurs when you run PROC EXPORT or PROC IMPORT steps in batch mode in UNIX environments:

   ERROR: Cannot open X display. 
          Check the name/server access authorization.

The SAS process might also appear to become unresponsive, or hang.

These procedures were originally designed to be run only in interactive mode, and therefore expect a calling terminal. The error occurs when they are run in batch mode because the procedures attempt to display the SAS Session Manager icon, which requires a valid X display.

To avoid the problem, upgrade to SAS 9.3 or later.
As a workaround, PROC EXPORT and PROC IMPORT can be run in batch mode if you specify the -NOTERMINAL option when launching a SAS process. Here is an example of the syntax:

   sas myprogram.sas -noterminal


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASSolaris8 TS M09.3 TS1M1
64-bit Enabled Solaris8 TS M09.3 TS1M1
ABI+ for Intel Architecture8 TS M09.3 TS1M1
64-bit Enabled AIX8 TS M09.3 TS1M1
64-bit Enabled HP-UX8 TS M09.3 TS1M1
HP-UX8 TS M09.3 TS1M1
Tru64 UNIX8 TS M09.3 TS1M1
AIX8 TS M09.3 TS1M1
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.